package com.pl.service.impl;

import com.pl.dao.RepairstatusDao;
import com.pl.entity.Repairstatus;
import com.pl.service.RepairstatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
@Service
public class RepairstatusServiceImpl implements RepairstatusService {
    @Autowired
    private RepairstatusDao repairstatusDao;
    @Override
    public int add(Repairstatus repairstatus) {
        return repairstatusDao.add(repairstatus);
    }

    @Override
    public int deleteById(Integer statusId) {
        return repairstatusDao.deleteById(statusId);
    }

    @Override
    public int updateById(Repairstatus repairstatus) {
        return repairstatusDao.updateById(repairstatus);
    }

    @Override
    public List<Repairstatus> findByMap(HashMap<String, Object> map) {
        return repairstatusDao.findByMap(map);
    }

    @Override
    public int deleteByList(List<Integer> list) {
        return repairstatusDao.deleteByList(list);
    }
}
